#ifndef TRIANGLE_H
#define TRIANGLE_H

class Mesh;
class Vertex;

#include "Vertex.h"
#include "Mesh.h"
#include <vector>
#include "iostream"
#include <QDebug>

class TROLL3DSHARED_EXPORT Triangle {

    public :

    Triangle (int offset);

    void SetVertices(Vertex * v1,Vertex * v2, Vertex * v3  );


    Vertex * vertex1;
    Vertex * vertex2;
    Vertex * vertex3;

    int offset;


    void InsertNewTriangleBuffer();
    void DeleteTriangle();
    void    UpdateTriangle();

    static vector<GLushort>   Indices;

    static void Print();
    static  GLushort * Array();


};

#endif // TRIANGLE_H
